﻿using System;

namespace OperationPlugins
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
    public class PriorityAttribute : Attribute
    {
        private readonly double _number;

        /// <summary>
        /// Initializes a new instance of the PriorityAttribute class.
        /// </summary>
        /// <param name="number">The priority number.</param>
        public PriorityAttribute(double number)
        {            
            _number = number;
        }

        /// <summary>
        /// Gets the priority number
        /// </summary>
        public virtual double Number { get { return _number; } }
    }
}
